<%-- 
    Document   : post
    Created on : Feb 28, 2014, 5:55:36 PM
    Author     : teke
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Forum Post</title>
        <link type="text/css" href="forum.css" rel="stylesheet">
    </head>
    <body>
        <div id="main"> 

            <c:forEach var="d" items="${Database.posts}">
                <div class="comment">
                    <legend>
                        User Name:${d.account.name}<br/>
                        Email:${d.account.email}<br/>
                        Category:${d.category}
                    </legend>
                    <h2>Title: ${d.title}</h2> 
                    ${d.post}
                </div>
                <br/>
            </c:forEach>
            <form action="post" method="get" >
                <input type="submit" name="btn" value="New post">
                <input type="submit" name="btn" value="Back">
            </form>

        </div>
    </body>
</html>
